package net.xdclass.local;

import net.xdclass.common.model.LoginUser;

/**
 * 存放用到的threadlocal
 */
public class ThreadLocal {


    /** 登录用户 */
    private static final java.lang.ThreadLocal<LoginUser> loginUser = new java.lang.ThreadLocal<>();

    public static void setLoginUser(LoginUser user){
        loginUser.set(user);
    }
    public static LoginUser getLoginUser(){
        return loginUser.get();
    }
}
